import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
    history: createWebHashHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: "/home",
            name:"home",
            component: () => import("@/views/Home/index.vue"),
        },
        {
            path: "",
            name:"login",
            component: () => import("@/views/Login/index.vue")
        },
        {
            path: "/audio",
            name:"audio",
            component: () => import("@/views/preview/audio.vue")
        },
        {
            path: "/video",
            name:"video",
            component: () => import("@/views/preview/video.vue")
        },
        {
            path: "/share",
            name:"share",
            component: () => import("@/views/share/index.vue")
        }
    ]
})

export default router